package com.hdl.design.pattern.uml;

/**
 * 类名 Bird
 * 描述 鸟类继承动物类
 *
 * @author hedonglin
 * @version 1.0
 * @date 2019/9/21 22:38
 */
public class Bird extends Animal{
    /**
     * 鸟的翅膀
     */
    private Wing wing;

    public Bird() {
    }

    /**
     * 构造函数，强制需要传入翅膀
     * @param wing 翅膀
     */
    public Bird(Wing wing) {
        this.wing = wing;
    }
}
